//
//  EditImageVeiwControllerViewController.m
//  UILbrary
//
//  Created by mac on 16/12/24.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "EditImageVeiwControllerViewController.h"

@interface EditImageVeiwControllerViewController ()


@end

@implementation EditImageVeiwControllerViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self.view addSubview:self.editoImageView];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


- (UIImageView *)editoImageView{
    if (!_editoImageView) {
        _editoImageView = [UIImageView new];
        _editoImageView.frame = CGRectMake(0, 0, 200, 200);
        _editoImageView.center = self.view.center;
        _editoImageView.contentMode = UIViewContentModeScaleToFill;
        _editoImageView.userInteractionEnabled = YES;
    }
    return _editoImageView;
}


- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    [self dismissViewControllerAnimated:YES completion:nil];
}
@end
